package com.amtf.datafile3.core.std.render;

import com.amtf.datafile3.DataField;
import com.amtf.datafile3.DataFieldRender;
import com.amtf.datafile3.core.std.AbsDataFieldRender;

public class ObjectFieldRender extends AbsDataFieldRender {

	public ObjectFieldRender() {
		super(null);
	}

	public String rending(DataField value) {
		Object o = value.getValue();
		if (o != null) {
			return o.toString();
		} else {
			return null;
		}
	}

	@Override
	public DataFieldRender clone() {
		ObjectFieldRender newObj = new ObjectFieldRender();
		return newObj;
	}
}
